Optimal. Leaf size=61 \[ \frac {d^2 x^2}{2 b^2}-\frac {(b c-a d)^2}{2 b^3 \left (a+b x^2\right )}+\frac {d (b c-a d) \log \left (a+b x^2\right )}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {455, 45}
\begin {gather*} -\frac {(b c-a d)^2}{2 b^3 \left (a+b x^2\right )}+\frac {d (b c-a d) \log \left (a+b x^2\right )}{b^3}+\frac {d^2 x^2}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 455
Rubi steps
\begin {align*} \int \frac {x \left (c+d x^2\right )^2}{\left (a+b x^2\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(c+d x)^2}{(a+b x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {d^2}{b^2}+\frac {(b c-a d)^2}{b^2 (a+b x)^2}+\frac {2 d (b c-a d)}{b^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {d^2 x^2}{2 b^2}-\frac {(b c-a d)^2}{2 b^3 \left (a+b x^2\right )}+\frac {d (b c-a d) \log \left (a+b x^2\right )}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 56, normalized size = 0.92 \begin {gather*} \frac {b d^2 x^2-\frac {(b c-a d)^2}{a+b x^2}+2 d (b c-a d) \log \left (a+b x^2\right )}{2 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 63, normalized size = 1.03
method | result | size |
default | \(\frac {d^{2} x^{2}}{2 b^{2}}-\frac {\left (a d -b c \right ) \left (\frac {2 d \ln \left (b \,x^{2}+a \right )}{b}-\frac {-a d +b c}{b \left (b \,x^{2}+a \right )}\right )}{2 b^{2}}\) | \(63\) |
norman | \(\frac {-\frac {2 a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{2 b^{3}}+\frac {d^{2} x^{4}}{2 b}}{b \,x^{2}+a}-\frac {d \left (a d -b c \right ) \ln \left (b \,x^{2}+a \right )}{b^{3}}\) | \(73\) |
risch | \(\frac {d^{2} x^{2}}{2 b^{2}}-\frac {a^{2} d^{2}}{2 b^{3} \left (b \,x^{2}+a \right )}+\frac {a c d}{b^{2} \left (b \,x^{2}+a \right )}-\frac {c^{2}}{2 b \left (b \,x^{2}+a \right )}-\frac {d^{2} \ln \left (b \,x^{2}+a \right ) a}{b^{3}}+\frac {d \ln \left (b \,x^{2}+a \right ) c}{b^{2}}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 73, normalized size = 1.20 \begin {gather*} \frac {d^{2} x^{2}}{2 \, b^{2}} - \frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{2 \, {\left (b^{4} x^{2} + a b^{3}\right )}} + \frac {{\left (b c d - a d^{2}\right )} \log \left (b x^{2} + a\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.06, size = 101, normalized size = 1.66 \begin {gather*} \frac {b^{2} d^{2} x^{4} + a b d^{2} x^{2} - b^{2} c^{2} + 2 \, a b c d - a^{2} d^{2} + 2 \, {\left (a b c d - a^{2} d^{2} + {\left (b^{2} c d - a b d^{2}\right )} x^{2}\right )} \log \left (b x^{2} + a\right )}{2 \, {\left (b^{4} x^{2} + a b^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.41, size = 68, normalized size = 1.11 \begin {gather*} \frac {- a^{2} d^{2} + 2 a b c d - b^{2} c^{2}}{2 a b^{3} + 2 b^{4} x^{2}} + \frac {d^{2} x^{2}}{2 b^{2}} - \frac {d \left (a d - b c\right ) \log {\left (a + b x^{2} \right )}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.97, size = 111, normalized size = 1.82 \begin {gather*} \frac {{\left (b x^{2} + a\right )} d^{2}}{2 \, b^{3}} - \frac {{\left (b c d - a d^{2}\right )} \log \left (\frac {{\left | b x^{2} + a \right |}}{{\left (b x^{2} + a\right )}^{2} {\left | b \right |}}\right )}{b^{3}} - \frac {\frac {b^{3} c^{2}}{b x^{2} + a} - \frac {2 \, a b^{2} c d}{b x^{2} + a} + \frac {a^{2} b d^{2}}{b x^{2} + a}}{2 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 77, normalized size = 1.26 \begin {gather*} \frac {d^2\,x^2}{2\,b^2}-\frac {a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2}{2\,b\,\left (b^3\,x^2+a\,b^2\right )}-\frac {\ln \left (b\,x^2+a\right )\,\left (a\,d^2-b\,c\,d\right )}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________